package org.lyfeng.spring.context.annotation;

import java.util.Set;

import org.lyfeng.spring.beans.definitions.BeanDefinition;

/**
 * @author leiyufeng
 * 2013-4-24 下午9:10:09
 */
public interface Scanner {
	/**
	 * 加载所有的class
	 * @param classLoader 类加载器
	 * @param packages 路径
	 */
    void scan(ClassLoader classLoader,String... packages);
	/**
	 * 查找为bean的类
	 * @param classLoader
	 * @param basePackage "com.lyfeng.test"
	 * @return
	 */
	Set<BeanDefinition> findCandidateComponents(ClassLoader classLoader,String basePackage);
}
